<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="Preparations for Backup">
<meta name="product" content="">
<meta name="DC.Relation" scheme="URI" content="en-us_topic_0000002164798484.html">
<meta name="prodname" content="">
<meta name="version" content="">
<meta name="brand" content="">
<meta name="DC.Publisher" content="20250306">
<meta name="prodname" content="csbs">
<meta name="documenttype" content="usermanual">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="EN-US_TOPIC_0000002200039525">
<meta name="DC.Language" content="en-us">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>Preparations for Backup</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="EN-US_TOPIC_0000002200039525"></a><a name="EN-US_TOPIC_0000002200039525"></a>

<h1 class="topictitle1">Preparations for Backup</h1>
<div><p>Before the backup, prepare related information by referring to this section.</p>
<p><a href="#EN-US_TOPIC_0000002200039525__en-us_topic_0000001507963717_table10744125193920">Table 1</a> lists the required information.</p>
<p><a href="#EN-US_TOPIC_0000002200039525__table1944319019220">Table 2</a> list the information required only when the CMDB cluster is backed up.</p>

<div class="tablenoborder"><a name="EN-US_TOPIC_0000002200039525__en-us_topic_0000001507963717_table10744125193920"></a><a name="en-us_topic_0000001507963717_table10744125193920"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002200039525__en-us_topic_0000001507963717_table10744125193920" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Preparations for backup</caption><colgroup><col style="width:25.44%"><col style="width:7.5200000000000005%"><col style="width:26.02%"><col style="width:41.02%"></colgroup><thead align="left"><tr><th align="left" class="cellrowborder" valign="top" width="25.44%" id="mcps1.3.4.2.5.1.1"><p>Item</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="7.5200000000000005%" id="mcps1.3.4.2.5.1.2"><p>Mandatory or Not</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="26.02%" id="mcps1.3.4.2.5.1.3"><p>How to Obtain</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="41.02%" id="mcps1.3.4.2.5.1.4"><p>Section</p>
</th>
</tr>
</thead>
<tbody><tr><td class="cellrowborder" valign="top" width="25.44%" headers="mcps1.3.4.2.5.1.1 "><p>Username of the operating system (OS) where the openGauss/CMDB database is installed</p>
</td>
<td class="cellrowborder" valign="top" width="7.5200000000000005%" headers="mcps1.3.4.2.5.1.2 "><p>Yes</p>
</td>
<td class="cellrowborder" valign="top" width="26.02%" headers="mcps1.3.4.2.5.1.3 "><p>Contact the database administrator to obtain the username.</p>
</td>
<td class="cellrowborder" rowspan="2" valign="top" width="41.02%" headers="mcps1.3.4.2.5.1.4 "><p><a href="en-us_topic_0000002164638720.html">Step 2: Registering an openGauss/CMDB Cluster</a></p>
<p></p>
</td>
</tr>
<tr><td class="cellrowborder" valign="top" headers="mcps1.3.4.2.5.1.1 "><p>Environment variable file path</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.4.2.5.1.2 "><p>No</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.4.2.5.1.3 "><p>Contact the database administrator to obtain the information.</p>
</td>
</tr>
</tbody>
</table>
</div>

<div class="tablenoborder"><a name="EN-US_TOPIC_0000002200039525__table1944319019220"></a><a name="table1944319019220"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002200039525__table1944319019220" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Supplementary information required for backing up the CMDB cluster</caption><colgroup><col style="width:15.370000000000001%"><col style="width:7.01%"><col style="width:52.62%"><col style="width:25%"></colgroup><thead align="left"><tr><th align="left" class="cellrowborder" valign="top" width="15.370000000000001%" id="mcps1.3.5.2.5.1.1"><p>Item</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="7.01%" id="mcps1.3.5.2.5.1.2"><p>Mandatory or Not</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="52.62%" id="mcps1.3.5.2.5.1.3"><p>How to Obtain</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.2.5.1.4"><p>Section</p>
</th>
</tr>
</thead>
<tbody><tr><td class="cellrowborder" valign="top" width="15.370000000000001%" headers="mcps1.3.5.2.5.1.1 "><p>DCS address</p>
</td>
<td class="cellrowborder" valign="top" width="7.01%" headers="mcps1.3.5.2.5.1.2 "><p>Yes</p>
</td>
<td class="cellrowborder" rowspan="2" valign="top" width="52.62%" headers="mcps1.3.5.2.5.1.3 "><p>In the CMDB configuration file <strong>panwei.yml</strong> (obtain the file path from the database administrator), select the IP address and port number of a group of DCS nodes, which correspond to <span class="parmname"><b>DCS Address</b></span> and <span class="parmname"><b>DCS Port</b></span>, respectively.</p>
<p>The following figure shows an example of the IP address and port number of a group of DCS nodes in the <strong>panwei.yml</strong> file.</p>
<p><span><img src="en-us_image_0000002164638772.png"></span></p>
</td>
<td class="cellrowborder" rowspan="3" valign="top" width="25%" headers="mcps1.3.5.2.5.1.4 "><p><a href="en-us_topic_0000002164638720.html">Step 2: Registering an openGauss/CMDB Cluster</a></p>
</td>
</tr>
<tr><td class="cellrowborder" valign="top" headers="mcps1.3.5.2.5.1.1 "><p>DCS port</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.5.2.5.1.2 "><p>Yes</p>
</td>
</tr>
<tr><td class="cellrowborder" valign="top" headers="mcps1.3.5.2.5.1.1 "><p>Database account and password</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.5.2.5.1.2 "><p>Yes</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.5.2.5.1.3 "><p>Contact the database administrator to obtain a database account with the backup or restoration permission and its password.</p>
<p>To create an account, perform the following steps:</p>
<ol><li>Use PuTTY to log in to any database host in the cluster.</li><li>Run the following command to log in to the <strong>postgres</strong> database:<pre class="screen">gsql -d postgres -p <em>5432</em></pre>
</li><li>Run the following command to create an account and set a password:<pre class="screen">CREATE USER <em>Account name</em> with PASSWORD '<em>Account password</em>';</pre>
</li><li>Run the following command to grant permissions to the account:<pre class="screen">GRANT ALL PRIVILEGES to <em>Account name</em>;</pre>
</li></ol>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0000002164798484.html">Backup</a></div>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">Copyright &copy; Huawei Technologies Co., Ltd.</div></body>
</html>